package com.dtp.core;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author evolution
 * @title: DtpUtil
 * @projectName dtp-nacos
 * @description: TODO
 * @date 2022-10-20 14:51
 */
public class DtpUtil {
    
    public static ConcurrentHashMap<String,DtpExecutor> map  = new ConcurrentHashMap();
    
    
    public static DtpExecutor get(String name) {
        return map.get(name);
    }
    
    public static void set(String name,DtpExecutor dtpExecutor) {
        map.put(name,dtpExecutor);
    }
}
